﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Team4sCMDB
{
    public class IncidentClass
    {
        public int ticketId;
        private string ticketType;
        private string subject;
        private string description;
        private DateTime ticketDate;

        public IncidentClass(int ticketId, string ticketType, string subject, string description, DateTime ticketDate)
        {
            this.ticketId = ticketId;
            this.ticketType = ticketType;
            this.subject = subject;
            this.description = description;
            this.ticketDate = ticketDate;
        }

        public override string ToString()
        {
            return ticketDate.ToShortDateString() + ": " + subject + ": " + description;
        }
    }
}
